﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace MsForgeReboot.Web {
    public class RouteConfig {
        public static void RegisterRoutes(RouteCollection routes) {

            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.IgnoreRoute("elmah.axd");

            routes.MapRoute(
               "Default",
               "{controller}/{action}/{urlPointer}",
               new { controller = "Home", action = "Index" },
               new[] { "MsForgeReboot.Web.Controllers" });

            routes.MapRoute(
                "ById",
                "{controller}/{action}/{id}",
                new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                new[] { "MsForgeReboot.Web.Controllers" });

        }
    }
}